# -*- coding: utf-8 -*-
import random

def genetate_content(size: int = 10):
    text = ''

    while True:
        text = text + genetate_str() + ' '
        byte_count = len(text.encode('utf-8'))
        count_mb = byte_count / (1024 * 1024)

        if count_mb >= size:
            break
    
    return text    

def genetate_str() -> str:
    characters = ['aaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb', 'ccccccccccccccccccccccccccc', 'dddddddddddddddddddddddddd', 'eeeeeeeeeeeeeeeee', 'fffffffffffffffffffffffffffffff',
                  'gggggggggggggggggg', 'hhhhhhhhhhhhhhhhhhhhhhh', 'iiiiiiiiiiiiiiiiiiiiiiii', 'jjjjjjjjjjjjjjjjjjjjjjjjj', 'kkkkkkkkkkkkkkkkkkkkkkkkkkkkk', 'llllllllllllllllllllllllllllllll',
                  'mmmmmmmmmmmmmmmmmmmmm', 'nnnnnnnnnnnnnnnnnnnnnnnnnnn', 'ooooooooooooooooooooooo', 'pppppppppppppppppppppp', 'qqqqqqqqqqqqqqqqqqqqqqqqqq', 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr',
                  'sssssssssssssssssssssss', 'tttttttttttttttttttttttttt', 'uuuuuuuuuuuuuuuuuuuuuuuu', 'vvvvvvvvvvvvvvvvvvvvvvvvvv', 'wwwwwwwwwwwwwwwww', 'xxxxxxxxxxxxxxxx',
                  'yyyyyyyyyyyyyyyyyyyyyyyyyyyy', 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz']
    text = ''
    while True:
        if len(text) >= 1000:
            break

        random_int = random.randint(0, 25)
        text = text + ' ' + characters[random_int]
    
    return text
